package com.zjk.wrench.design.framework.tree.node;

import com.alibaba.fastjson2.JSON;
import com.zjk.wrench.design.framework.tree.AbstractDemoSupport;
import com.zjk.wrench.design.framework.tree.factory.DefaultStrategyFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MemberLevel2Node extends AbstractDemoSupport {
    @Override
    protected String doApply(String requestParameters, DefaultStrategyFactory.DynamicContext dynamicContext) {
        log.info("【级别节点-2】规则决策树 requestParameters:{}",requestParameters);
        return "level1" + JSON.toJSONString(dynamicContext);
    }
}
